COLOR 2,3:PRINT " WELCOME TO DOUGIE BASE! " :COLOR 1,2 :PRINT :PRINT " Set Preferences to 80 columns !":start = 1
records = 100:fields = 10 'Maximum 100 records 10 fields.
start:
DIM hd$(fields + 2),d$(records,fields),d(records,fields),search$(records,fields),it$(records + 50),tl!(records),tb(fields + 2),lf(fields + 2),row$(6) 'cut fields in 1/2 to save memory
PRINT:PRINT " ROOM FOR ";:COLOR 2,3:PRINT records-n;:COLOR 1,2:PRINT " MORE RECORDS IN FILE ";:COLOR 2,3:PRINT lx$:COLOR 1,2
PRINT:IF su = 0 THEN PRINT " PRESS <";:COLOR 2,3:PRINT " RETURN ";:COLOR 1,2:PRINT "> TO RETURN TO MENU !":INPUT "",x$:WINDOW CLOSE 2:WINDOW OUTPUT 1:MENU ON:GOTO mainloop
IF su = 1 THEN PRINT " MATHEMATIC FUNCTION IS - ";:COLOR 2,3:PRINT mf$:COLOR 1,2:IF figures = 5 OR figures = 6 THEN LOCATE 15,45:PRINT " $ FORMATTED TO ";:COLOR 2,3:PRINT figures;:COLOR 1,2:PRINT " FIGURES."
IF ar = 0 THEN ar = tf
PRINT:PRINT " FIRST OPERAND IS FIELD # ";:COLOR 2,3:PRINT ad:COLOR 1,2:PRINT " ";:COLOR 2,3
PRINT mf$;:COLOR 1,2:PRINT " WITH FIELD # ";:COLOR 2,3:PRINT ar:COLOR 1,2
PRINT:PRINT " CALCULATION RESULTS ARE IN FIELD # ";:COLOR 2,3:PRINT tf:COLOR 1,2
PRINT :PRINT " ** PRESS <";:COLOR 2,3:PRINT " RETURN ";:COLOR 1,2:PRINT "> TO RETURN TO MENU ! **"
INPUT "",x$:WINDOW CLOSE 2:WINDOW OUTPUT 1:MENU ON:GOTO mainloop
search:
g = 1:globfilno = 1 'initialize record in global search
nodata:
IF n = 0 THEN CLS:LOCATE 4,5:PRINT " NO DATA IN MEMORY - HIT ANY KEY TO EXIT !":WINDOW OUTPUT 1:CLOSE #1:GOSUB getkee:GOTO 2000
IF f = 1 THEN h = 76 ELSE h = INT(46 /(f-1)):l = INT(76/f)
CLS:LOCATE 5,5:COLOR 2,3:PRINT " SEARCH MODULE NOW ACTIVE ":COLOR 1,2
fields:
LOCATE 7,2:PRINT "The Field Titles are --"
LOCATE 9,1:FOR i = 1 TO f:COLOR 1,2:PRINT i;TAB(10);:COLOR 2,3:PRINT hd$(i):COLOR 1,2:NEXT i
8060 IF sort = 1 THEN PRINT :INPUT " Sort in which field? ",e$:GOTO 8065
PRINT :INPUT " Search in which field? ",e$
8065 PRINT :IF e$< "1" OR e$ > "9" THEN PRINT " CHOOSE A # NOT A LETTER !!":GOTO 8060
c = VAL(e$)
IF c > f THEN LOCATE 10,48:PRINT "ONLY ";f;" FIELDS":LOCATE 14,2:GOTO 8060
PRINT :PRINT " FIELD : ":PRINT :COLOR 2,3:PRINT hd$(c):COLOR 1,2
IF sort = 1 THEN RETURN
PRINT :PRINT " ENTER CHARACTERS FOR WHICH YOU WISH TO SEARCH AT PROMPT !"